package com.cskaoyan.service.promoteservice;



import com.cskaoyan.bean.promotebean.Ad;
import com.cskaoyan.bo.promoteBO.AdUpdateBO;
import com.cskaoyan.vo.promotevo.AdCreateVO;
import com.cskaoyan.vo.promotevo.AdListVO;
import com.cskaoyan.vo.promotevo.AdUpdateVO;

import java.text.ParseException;

public interface AdService {
    AdListVO queryAdAll(Integer page, Integer limit, String name, String content, String sort, String order);

    AdCreateVO insert(Ad ad);

    AdUpdateVO update(AdUpdateBO ad) throws ParseException;

    void delete(Integer id);
}
